<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Pagina Personale</title>
</h:head>
<h:body  >
 	<p:toolbar>
		<p:toolbarGroup>
			<h:form>
				<p:splitButton value="...">
					<p:menuitem value="Gestisci Account" url="gestioneAccount.xhtml" />
					<p:menuitem value="Cerca Pacchetti Viaggio" url="cercaPacchettoViaggio.xhtml"/>
					<p:menuitem value="Lista Pacchetti " url="listaPacchetti.xhtml"/>
					<p:menuitem value="Lista Amici" url="gestioneAmici.xhtml"/>
				</p:splitButton>
			</h:form>
		</p:toolbarGroup>
		<p:toolbarGroup align="right">
			<h:form>
				<p:commandButton action="#{logoutBean.logout()}" value="Logout" />
			</h:form>	
		</p:toolbarGroup>
	</p:toolbar>
 
	<p:panel header="Ciao #{clienteBean.nome}" > 
	<h1>Benvenuto nella tua pagina personale!</h1>
	<p:dataList value="Dati Personali" var="dati" itemType="circle" >  
    Nome: #{clienteBean.nome}<br/>
    </p:dataList>
    <p:dataList value="Dati Personali" var="dati" itemType="circle">  
    Cognome: #{clienteBean.cognome}<br/>
    </p:dataList>
    <p:dataList value="Dati Personali" var="dati" itemType="circle">     
    Mail: #{clienteBean.mail}<br/>
    </p:dataList>
    <p:dataList value="Dati Personali" var="dati" itemType="circle">  
    Username: #{clienteBean.username}<br/>
    </p:dataList>   
    <p:dataList value="Dati Personali" var="dati" itemType="circle">  
    Indirizzo: #{clienteBean.indirizzo}<br/>
    </p:dataList>
    <p:dataList value="Dati Personali" var="dati" itemType="circle">     
    Data di Nascita: #{clienteBean.datadiNascita}
	</p:dataList>  
	</p:panel>  
	

</h:body>
</html>